package com.savvy.hibernate;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;

import android.app.Activity;
import android.content.Context;

/**
 * There are still times when you'll want to use files directly
 * rather than rely on Android's managed mechanisms.<br/>
 * As well as the standard Java I/O classes and methods, Android offers
 * openFileInput and openFileOutput to simplify reading and writing streams
 * from and to local files.<br/>
 * These methods only support files in the current application folder;
 * specifying path separators will cause an exception to be thrown. 
 * 
 * @author Bennis
 */
public class SimpleFile extends Activity {
	String fileName;
	
	SimpleFile(String fileName) throws FileNotFoundException {
		this.fileName = fileName;
		FileOutputStream fos = openFileOutput(fileName, Context.MODE_PRIVATE);
		FileInputStream fis = openFileInput(fileName);
	}
}
